const Layout = () => import('@/layout/index.vue')

export default [
  {
    path: '/dev',
    name: 'Dev',
    component: Layout,
    meta: {
      icon: 'ep:setting',
      title: '开发中心'
    },
    children: [
      {
        path: '/dev/icon',
        name: 'DevIcon',
        component: () => import('@/views/dev/icon.vue'),
        meta: {
          title: '图标代码',
          icon: 'ep:setting',
          requiresAuth: true
        }
      },
      {
        path: '/dev/minio',
        name: 'DevMinIo',
        component: () => import('@/views/dev/minio/index.vue'),
        meta: {
          title: '文件服务',
          icon: 'ep:setting',
          requiresAuth: true
        }
      }
    ]
  },
  {
    path: '/system',
    name: 'System',
    component: Layout,
    meta: {
      icon: 'ep:setting',
      title: '系统管理'
    },
    children: [
      {
        path: '/system/info',
        name: 'SystemInfo',
        component: () => import('@/views/system/info.vue'),
        meta: {
          icon: 'ep:user',
          title: '系统管理',
          requiresAuth: true
        }
      },
      {
        path: '/system/user',
        name: 'SystemUser',
        component: () => import('@/views/system/user.vue'),
        meta: {
          icon: 'ep:user',
          title: '用户管理',
          requiresAuth: true
        }
      },
      {
        path: '/system/role',
        name: 'SystemRole',
        component: () => import('@/views/system/role.vue'),
        meta: {
          icon: 'ep:user-filled',
          title: '角色管理',
          requiresAuth: true
        }
      },
      {
        path: '/system/menu',
        name: 'SystemMenu',
        component: () => import('@/views/system/menu.vue'),
        meta: {
          icon: 'ep:menu',
          title: '菜单管理',
          requiresAuth: true
        }
      }
    ]
  },
  {
    path: '/content',
    name: 'Content',
    component: Layout,
    meta: {
      icon: 'ep:document',
      title: '内容管理'
    },
    children: [
      {
        path: '/content/info',
        name: 'ContentInfo',
        component: () => import('@/views/content/info.vue'),
        meta: {
          icon: 'ep:user',
          title: '内容管理',
          requiresAuth: true
        }
      },
      {
        path: '/content/article',
        name: 'ContentArticle',
        meta: {
          icon: 'ep:document-copy',
          title: '文章管理'
        },
        children: [
          {
            path: '/content/article/recommend',
            name: 'ContentRecommend',
            meta: {
              icon: 'ep:document-copy',
              title: '文章推荐',
              requiresAuth: true
            },
            component: () => import('@/views/content/article.vue')
          },
          {
            path: '/content/article/maintenance',
            name: 'ContentMaintenance',
            meta: {
              icon: 'ep:document-copy',
              title: '文章维护',
              requiresAuth: true
            },
            component: () => import('@/views/content/article.vue')
          }
        ]
      },
      {
        path: '/content/category',
        name: 'ContentCategory',
        component: () => import('@/views/content/category.vue'),
        meta: {
          icon: 'ep:folder',
          title: '分类管理',
          requiresAuth: true
        }
      }
    ]
  },
  {
    path: '/aboutUs',
    name: 'AboutUs',
    component: Layout,
    meta: {
      icon: 'ep:document',
      title: '关于我们',
      isHidden: true
    },
    children: [
      {
        path: '/MyaboutUs',
        name: 'MyaboutUs',
        component: () => import('@/views/about/index.vue'),
        meta: {
          icon: 'ep:folder',
          title: '关于我们'
        }
      }
    ]
  }
] satisfies RouteConfigsTable[]
